import request from '@/utils/request'
// http://localhost:8081
// 查询采购单列表
export function getDelivery(query) {
  return request({
    url: '/system/delivery/list',
    method: 'get',
    params: query
  })
}

// 查询采购单详情
export function getDeliveryInfo(id) {
  return request({
    // url: '/system/delivery/list',
    url: '/system/delivery/' + id,
    method: 'get',
    // params: query
  })
}

// 添加采购单
export function addDelivery(query) {
  return request({
    url: '/system/delivery',
    method: 'post',
    data: query
  })
}


// 编辑采购单
export function editDelivery(query) {
  return request({
    url: '/system/delivery',
    method: 'put',
    data: query
  })
}

